<?php

use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use yii\bootstrap\ActiveForm;
use yii\widgets\LinkPager;
use yii\helpers\Url;

?>
<?php echo $this->render('_centerHeader') ?>
<!--主体开始-->
<div class="main-area" style=" background: #f5f5f5;">
    <div class="container">
        <div class="column-layout">
            <!-- main-area-left start  -->
<div class="column-col column-full main-area-left">
<div dy-v="00-00-11-00" class="main-area-leftin tab-box learn-box">
<div class="ibox">
<div class="ibox-in">
<div class="ibox-head">
	<ul class="tab-list" role="tablist">
		<li role="presentation" class="active">
			<a href="#KC_ING" aria-controls="KC_ING" role="tab" data-toggle="tab">教授的课程</a>
		</li>
	</ul>
</div>
<div class="ibox-body tab-pane-list">
	<!-- 正在学课程  -->
	<div role="tabpanel" class="tab-pane active" id="KC_ING">
		<div class="row learn-lesson-list">
			<?php if($course) { ?>
				<?php foreach($course as $key => $val) { ?>
					<div class="col-xs-4 item">
						<div class="col-in">
							<a href="<?php echo Url::to(['course/course-detail']);?>?course_id=<?= Html::encode($val['course_id']) ?>" target="_blank">
								<span class="learn-lesson-pic" title="<?= Html::encode($val['course_name']) ?>"><img src="<?= 'http://files.bwphp.com/file/image/show/250/160?path='.Html::encode($val['course_thumb']) ?>" alt=""></span>
								<span class="learn-lesson-name" title="<?= Html::encode($val['course_name']) ?>"><?= Html::encode($val['course_name']) ?></span>
								<span class="learn-lesson-relative" title="<?= Html::encode($val['apply_num']) ?>人正在学习"><font style="color:#ffad0f;font-size:16px;font-weight:bold"><?= Html::encode($val['apply_num']) ?></font>  人正在学习</span>
							</a>
						</div>
					</div>
				<?php } ?>
				<div align="center">
					<span id='page'>
						<?php echo LinkPager::widget([
							'pagination' => $pagination,
							'prevPageLabel'=>'上一页',
							'nextPageLabel'=>'下一页',
						]);?>
					</span>
				</div>
			<?php }else{ ?>
				<table id="user-table" class="table table-striped table-hover" style="height:100px">
				<tbody>
					<tr>
						<td colspan="20">
							<center><div class="empty" style="padding-top: 35px;">暂无课程记录</div></center>
						</td>
					</tr>
				</tbody>
			</table>
			<?php } ?>
		</div>
	</div>
</div>
</div>
</div>
</div>
</div>

            <!-- main-area-left end  -->
            <!-- main-area-right start  -->
            <div dy-v="00-00-11-11" class="column-col main-area-right">
                
                <!-- 课程推荐 -->
                <?php echo $this->render('../common/_courseRecommend') ?>
 
                <!-- 名师推荐 -->
                <?php echo $this->render('../common/_teacherRecommend') ?>

                <!-- 图片广告 -->
                <?php echo  $this->render('../common/_adRecommend') ?>
            </div>
            <!-- main-area-right end  -->
        </div>
    </div>
</div>
